﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="../Public/js/html5.js"></script>
<script type="text/javascript" src="../Public/js/respond.min.js"></script>
<script type="text/javascript" src="../Public/js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="../Public/font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="../Public/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->

<title>店铺展示</title>
</head>
<style>
.current{padding: 4px 11px;background:#18BC9C;color: #fff; border: 1px solid #e5e5e5; font-size: 15px }
.num{ background: ; color: #009f8f;padding: 4px 11px;border: 1px solid #e5e5e5; font-size: 15px   }
.prev{border: 1px solid #e5e5e5; background: ;  color: #009f8f; font-size: 15px;padding: 4px 11px;}
.next{ border: 1px solid #e5e5e5; background: ; color: #009f8f; font-size: 15px;padding: 4px 11px; }

.ddd{border: 1px solid #e5e5e5; color:#009f8f;padding: 4px 11px;font-size: 15px}


</style>
<body>
<nav class="Hui-breadcrumb"><i class="icon-home"></i> 首页 <span class="c-gray en">&gt;</span> 用户信息 <span class="c-gray en">&gt;</span> 用户列表 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>


   <div class="panel panel-primary radius" style="border-bottom: none;">
  
   &nbsp;&nbsp;  
<form  action="{:U('Admin/User/index')}" method="post" style="text-align: center;">
    &nbsp;&nbsp;<td>手机号：<input type="text" class="input-text radius" style="width:250px" placeholder="输入手机号" id="title" name="username" value="{$Think.post.username}">
                                  
      </td>
      <input type="submit" class="btn btn btn-success radius"  value="搜索" name="submit">
</form>
  
  </div>
<div class="pd-20">

 <form action="{:U('Admin/User/del')}" method="post" id="shanchu" >
   <div class="panel panel-primary radius">
    <div class="panel-header">
    <span class="l"> <a href="#" class="btn btn-danger radius"><i class="icon-trash"></i> 批量删除</a></span>
   &nbsp;&nbsp; &nbsp;&nbsp;   
    <span class="r c-black">共有数据：<strong>{:$pageCount}</strong> 条</span>
 </div>
	<div class="panel-body">
  <table  class="table table-border table-bordered  radius table-striped table-hover"  width="100%" height="20px">
    <thead>
    
      <tr class="text-c">
           <th width="31" align="center"><input type="checkbox" name="" value=""></th>  
        <th width="100" align="center">ID</th>
      <!--   <th width="150" align="center">展示分类</th> -->
        <th width="80" align="center">账号</th>
        <th  width="80" align="center">昵称</th>
        <th width="80" align="center">状态</th>

        <th width="87" align="center">操作</th>
      </tr>
    </thead>
    <tbody>
	 <volist name="user" id="vo" key="key">
      <tr class="text-c">
          <td align="center"><input type="checkbox" value="{$vo.id}" id="id" name="id[]"></td>
        <td align="center">{:(I('get.p'))?((I('get.p')-1)*20+$key):($key)}</td>
      <!--   <td align="center">{$vo.cat_id}</td> -->
        <td align="center">{$vo.phone}</td>
         <td align="center" style="text-align: center;">{$vo.user}</td>
     <td align="center" style="text-align: center;"><span class="label  {$vo[status]?'label-success':''}">{$vo[status]?'通过':'待审核'}</span></td>
     
        <td align="center" class="f-14 admin-manage"><a title="审核" style="text-decoration:none" onClick="shehe(this,'{:U('Admin/User/statusAct',array('id'=>$vo['id'],'status'=>$vo['status']))}','{:U('Admin/User/index')}',{$vo.phone})" href="javascript:;" title=""><i class="{$vo[status]?'icon-hand-up':'icon-hand-up'}"></i></a>   &nbsp;&nbsp;<a title="详细" href="{:U('Admin/User/update',array('id'=>$vo['id']))}"  class="ml-5" style="text-decoration:none"><i class="icon-edit"></i></a> </td>
      </tr>
    </volist>
    </tbody>
  </table>
 <div id="pageNav" class="pageNav"> {$page}</div>
</div>

</form>
<script type="text/javascript" src="../Public/js/jquery.min.js"></script>
<script type="text/javascript" src="App/Home/View/Public/layer/layer.js"></script>
<!-- <script type="text/javascript" src="../Public/layer/layer.min.js"></script> -->
<script type="text/javascript" src="../Public/js/jquery.form.js"></script>
<script type="text/javascript" src="../Public/js/H-ui.admin.js"></script>  
<script type="text/javascript">


$(function(){

  $(".l").click(function(){
     layer.confirm('确认要删除吗？',{skin:'layui-layer-molv',title:'用户信息',icon:6,anim: 5},function(index){
     $("#shanchu").submit();
     // location.replace("{:u('Admin/Hotnew/Index')}");

    });

  });
});
function shehe(obj,starturl,stopurl,phone){
  layer.confirm(phone+'确认要审核吗？',{skin:'layui-layer-molv',title:'用户审核',icon:6,anim: 5},function(){
       //AJAX异步传输过去              
       htmlobj=$.ajax({url:starturl,async:false});
       if(htmlobj.responseText=="ok")
       {
        layer.msg('审核成功!',{icon:6});
        setTimeout(function(){
          location.replace(stopurl);
              },1000);
              
       }else{
         layer.msg('审核失败!');
          setTimeout(function(){
            location.replace(stopurl);
                },1000);
       }
  });
}
</script>

</body>
</html>